﻿using System;
using System.Collections.Generic;
using System.Text;

using YouHP.Model;
using YouHP.BLL;
using YouHP.Utility;

namespace YouHP.Pages.Member
{
    public class TreatmentHistory : PatientBasePage
    {
        protected List<PatientTreatmentInfo> TreatmentHistoryList { get; set; }
        protected int TreatmentId { get; set; }

        protected override void ShowPage()
        {
            base.ShowPage();
            if (ErrorCount > 0) return;

            HandleCommon();
            if (IsPost) HandlePost();
            else HandleGet();
        }

        protected void HandleCommon()
        {
        }

        protected void HandlePost()
        {
        }

        protected void HandleGet()
        {
            TreatmentId = RequestTools.GetQueryInt("tid", -1);
            if (TreatmentId <= 0)
            {
                this.AddErrLine("无效的参数 找不到 tid");
                return;
            }

            //TreatmentHistoryList = PatientTreatmentBLL.Instance.GetAllUseHistoryTreatments(PRInfo.Id, TreatmentId);
        }
    }
}
